﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using System.Text;

public partial class Product_ShowImg : System.Web.UI.Page
{
    private string _img;
    public string IMG
    {
        get { return _img; }
        set { _img = value; }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Html();
        }
    }
    private void Html()
    {
        StringBuilder Sb = new StringBuilder();
        //string spdm = Request.QueryString["ProductID"].ToString();
        //string color = Request.QueryString["color"].ToString();
        string img = Request.QueryString["img"].ToString();
        //DataSet ds = new BLL.SHANGPIN().GetProductColorImg(spdm, color);
        //if (ds.Tables.Count > 0)
        //{
        //    Sb.Append("<img src=\"" + BLL.Common.GetProductPicPath("show") + BLL.Common.GetPath(ds.Tables[0].Rows[0]["CP_PICPATH"].ToString()) + ds.Tables[0].Rows[0]["CP_PICPATH"].ToString() + "\" />");
        //    IMG = Sb.ToString();
        //}
        Sb.Append("<img src=\"" +img.Replace("big", "show") + "\" />");
        IMG = Sb.ToString();
    }
}
